package com.hospital.insurancepeople.module.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.sql.Timestamp;

/**
 * <p>
 * ÃÅÕïÒ½Éú´¦·½Ö÷¼ÇÂ¼
 * </p>
 *
 * @author lvyao
 * @since 2021-03-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("OUTP_DOCTOR_PRESC_MASTER")
public class OutpDoctorPrescMaster implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableField("PATIENT_ID")
    private String patientId;

    @TableField("OUTP_ID")
    private Integer outpId;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @TableField("VISIT_DATE")
    private Timestamp visitDate;

    @TableField("VISIT_TIME")
    private String visitTime;

    @TableField("VISIT_NO")
    private Integer visitNo;

    @TableField("NAME")
    private String name;

    @TableField("SEX")
    private String sex;

    @TableField("AGE")
    private Integer age;

    @TableField("IDENTITY")
    private String identity;

    @TableField("CHARGE_TYPE")
    private String chargeType;

    @TableField("UNIT_IN_CONTRACT")
    private String unitInContract;

    @TableField("ORDERED_BY")
    private String orderedBy;

    @TableField(exist = false)
    private String orderedByName;

    @TableField("PRESCRIBER")
    private String prescriber;

    @TableField("CHARGE_FLAG")
    private Integer chargeFlag;

    @TableField("PRESC_TYPE")
    private String prescType;

    @TableField("MEMO")
    private String memo;

    @TableField("CHRONIC_FLAG")
    private String chronicFlag;

    @TableField("VERIFY_FLAG")
    private int verifyFlag;

    @TableField("DISPENSARY")
    private String dispensary;

    @TableField("ORDER_TYPE")
    private String orderType;
}
